package com.beiji.lib.pen.ui.renderer

import android.graphics.Canvas
import android.graphics.Matrix
import android.graphics.Paint
import com.beiji.lib.pen.model.DotUnit
import com.beiji.lib.pen.model.PenStroke

/**
 * 渲染器
 */
abstract class Renderer {
    abstract fun reset()

    abstract fun draw(canvas: Canvas, stroke: PenStroke, dotMatrix: Matrix, paint: Paint?)

    abstract fun draw(canvas: Canvas, dot: DotUnit, paint: Paint?)
}